Skip to content

docs(data-modeling): document the managedBy lifecycle bucket and ADR-0103 write policy#3333

Merged
os-zhuang merged 1 commit into
mainfrom
claude/managedby-taxonomy-split-yder9o
Jul 20, 2026
Merged

docs(data-modeling): document the managedBy lifecycle bucket and ADR-0103 write policy#3333
os-zhuang merged 1 commit into
mainfrom
claude/managedby-taxonomy-split-yder9o

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

Docs accuracy pass following #3220 / ADR-0103 (the taxonomy split, merged in #3315, plus the deny-list follow-up #3326). Hand-written docs only — the auto-generated references/** already regenerated correctly from the zod schema.

Gap

The canonical Object reference (data-modeling/objects.mdx) documented isSystem but never mentioned managedBy at all — no property row, no bucket enumeration, no write-policy explanation. The engine-owned vs. admin-writable distinction ADR-0103 introduced was documented nowhere in hand-written prose (only in the ADR and the v16 release note).

Changes

  • data-modeling/objects.mdx — added managedBy + userActions rows to the object property table, and a new "Lifecycle bucket (managedBy)" subsection: the five buckets as a table, the engine-owned vs. admin/user-writable system split with a sys_user_preference-style userActions example, the resolved-affordance write policy (resolveCrudAffordances, not the bare bucket), the assertEngineOwnedWriteAllowed guard, and a callout on the apiMethods reconciliation.
  • data-modeling/fields.mdxreadonly's vague "governed by their own guards instead" now names the resolved-affordance write policy and links to the new bucket section (ADR-0103).
  • permissions/authentication.mdx — noted the better-auth identity objects are an identity-owned bucket: user-context generic CRUD is suppressed (fail-closed guard), better-auth's own writes run under a system context.

Scope notes

Verification

fumadocs-mdx compiles the collection cleanly (exit 0); the #lifecycle-bucket-managedby anchor links resolve.

🤖 Generated with Claude Code


Generated by Claude Code

…0103 write policy

The Object reference never documented `managedBy` at all. Add a `managedBy` +
`userActions` row to the object property table and a "Lifecycle bucket"
subsection covering the five buckets, the engine-owned vs admin/user-writable
`system` split (ADR-0103), the resolved-affordance write policy, the
`assertEngineOwnedWriteAllowed` guard, and the apiMethods reconciliation.

- fields.mdx: `readonly`'s "governed by their own guards" now names the
  resolved-affordance write policy and links to the bucket section.
- authentication.mdx: note the better-auth identity objects are an
  identity-owned bucket — user-context generic CRUD is suppressed, better-auth's
  own writes run as system context.

Docs only. Refs #3220 / ADR-0092 / ADR-0103.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fp9yZxRQ3mb7p4vVwqFXKE
@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jul 20, 2026 2:11am

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation size/s labels Jul 20, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review July 20, 2026 02:37
@os-zhuang
os-zhuang merged commit e32bec7 into main Jul 20, 2026
14 of 15 checks passed
@os-zhuang
os-zhuang deleted the claude/managedby-taxonomy-split-yder9o branch July 20, 2026 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants